package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.LeaseDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 土地租赁
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-15 20:27:55
 */
public interface LeaseMapper extends BaseMapper<LeaseDO> {

    List<LeaseDO> selectListByBack(@Param("title") String title, @Param("categoryId") String categoryId, @Param("offset") Integer offset, @Param("limit") Integer limit);

    List<LeaseDO> selectListByFront(@Param("categoryId") String categoryId, @Param("offset") Integer offset, @Param("limit") Integer limit);

    Long countOrder(@Param("title") String title, @Param("categoryId") String categoryId);

    LeaseDO selectByLeaseId(@Param("leaseId") Integer id);
}
